//Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using NUnit.Framework;

namespace Microsoft.Office.OneNote.UnitTests
{
	/// <summary>
	/// Tests the base Node class.
	/// </summary>
	[TestFixture]
	public class NodeTest
	{
		[Test]
		public void Properties()
		{
			ANode node = OneNote.Application.NotebookRoot;

			String propertyValue;
			Assert.IsFalse(node.TryToGetProperty("made-up-property-name", out propertyValue));

			propertyValue = node.GetProperty_Else("made-up-property-name", "made-up-value");
			Assert.IsTrue(propertyValue == "made-up-value");
		}
	}
}
